﻿namespace AVIS.OutBound.Members
{
    /// <summary>
    ///  用户信息
    /// </summary>
    public class MemberService : IMemberService
    {

        private readonly IMemberManager _memberManager;

        /// <summary>
        /// 构造函数
        /// </summary>
        public MemberService(IMemberManager memberManager)
        {
            _memberManager = memberManager;
        }

        /// <summary>
        /// 根据用户主键获取用户信息
        /// </summary>
        /// <param name="id">用户主键</param>
        public Member GetById(int id)
        {
            return _memberManager.GetById(id);
        }

        /// <summary>
        /// 修改用户信息
        /// </summary>
        /// <param name="member">用户信息</param>
        public void Update(Member member)
        {
            _memberManager.Update(member);
        }
    }
}